<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Pages extends CI_Controller {

	public function view($page = 'home'){
		$this->load->model("");
		if ( ! file_exists('application/views/pages/'.$page.'.php')){
			// Oh-oh... no tenemos una pagina para esto!
			//show_404();
		}
		$data['title'] = ucfirst("sala de microbiología"); // Capitaliza la primera letra
		$data['menu'] = array("Inicio", "Reportes", "Usuarios");
		//$this->load->view('templates/header', $data);
		$this->load->view('pages/'.$page, $data);
		//$this->load->view('templates/footer', $data);
	}
} //EndClass(Pages)

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */